﻿using System;
using System.Collections.Generic;
using System.Text;
using NUnit.Core;

namespace STCommon.NUnit
{
    public class NUnitNotPreconditionsFilter : NUnitPreconditionsFilter
    {
#region NUnitPreconditionsFilter overrides

        public override bool Match(ITest test)
        {
            return test.TestType == "TestMethod" &&
                   !test.TestName.Name.Contains("Preconditions");
        }

#endregion
    }
}
